using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FloatArrayTrans : MonoBehaviour
{
    // Start is called before the first frame update
    public Vector4 colorV4 = Vector4.one;
    public Color color = Color.blue;
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        Shader.SetGlobalFloatArray("_floatArray",new float[4]{colorV4.x,colorV4.y,colorV4.z,colorV4.w });
        Shader.SetGlobalVectorArray ("_vectorArray",new Vector4[2]{new Vector4(color.r,color.g,color.b,color.a),Vector4.one});
    }
}
